package com.zyd.blog.persistence.mapper;

import com.zyd.blog.persistence.beans.ProductNew;
import com.zyd.blog.persistence.beans.SoftNew;
import com.zyd.blog.persistence.beans.SoftProduct;
import com.zyd.blog.plugin.BaseMapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liusongqi
 * @since 2020-03-17
 */
@Repository
public interface BackstageSoftProductMapper extends BaseMapper<SoftProduct> {
    List<SoftProduct> softBackstage(int page, int count);

    SoftProduct imageId(String id);

    void editSoftHave(String  softId,String  softTitle,String softStyle,String softApartment,String softPlace,
                    String  top,String useState,String coverImage ,String province,String city,
                     String area,String styleContent,String apartmentContent,String placeContent,String softImage,
                     String imageId);
    void deleteSoft(String id);

    List<SoftProduct> searchDesign(String value, int page, int count);

    Integer count(String value);

    SoftProduct get(String id);

    List<ProductNew> product(@Param(value = "id") String id);
}
